import { createApp } from "vue";
// import require from "require.js";
import SvgIcon from "@/components/SvgIcon/index.vue"; // svg component
console.log(SvgIcon);

const app = createApp({});
app.component("svg-icon", SvgIcon);
console.log(require);
const req = require.context("./svg", false, /\.svg$/);

const requireAll = (requireContext) => requireContext.keys().map(requireContext);
export default requireAll(req);
